package org.neuedu.chapter02_0609;

public class VariabelDemo09 {
    public static void main(String[] args) {
        // 算术运算符 + - * /
        int age = 20;
        age = age + 10;
        System.out.println(age + 50);

        int num = 100;
        System.out.println(num + 1);// 101
        System.out.println(num + "1");// 1001
        System.out.println(num + "1" + 100);// 1001100

        String name = "Southyin";
        System.out.println("My name is "+name);

        System.out.println(9.0/2);

        System.out.println(5+6+7);// 18
        System.out.println("5"+6+7);// 567
        System.out.println(5+"6"+7);// 567
        System.out.println(5+6+"7");// 117
        System.out.println(5+6+'7');// 66
    }
}
